package com.ajie.mapper;

import com.ajie.entity.Comment;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    
    /**
     * 发布评论
     * @param comment
     */
    void addComment(Comment comment);
    
    
    /**
     * 查询评论
     * @param comment
     * @return
     */
    List<Comment> findComment(Comment comment);
    
    /**
     * 删除根据id评论
     * @param id
     */
    void delete(Long id);
    
    
    Page<Comment> findAllComment(String topicType,String queryString);
    
    void updateStatus(Long id);
}
